package com.sbm.merge.设计模式.factory.abstractfactory;

import com.sbm.merge.设计模式.factory.abstractfactory.components.Button;
import com.sbm.merge.设计模式.factory.abstractfactory.components.TextField;

public class Application {

    private Button button;
    private TextField textField;

    public Application(GUIFactory guiFactory) {

        this.button = guiFactory.createButton();
        this.textField = guiFactory.createTextField();
    }


    public Button getButton() {
        return button;
    }

    public TextField getTextField() {
        return textField;
    }
}
